package org.p2psimulator.entity.protocol.messages.chord;

import org.p2psimulator.entity.Id;
import org.p2psimulator.entity.Message;
import org.p2psimulator.entity.behavior.BehaviorTypes;
import org.p2psimulator.entity.protocol.messages.MessageTypes;

public class ChordQuery extends Message {

	Id key;
	
	public ChordQuery(Id origin, Id destination, int transactionId,
			BehaviorTypes originBehavior) {
		super(origin, destination, transactionId, originBehavior);

	}	
	public Id getKey() {
		return key;
	}
	public void setKey(Id key) {
		this.key = key;
	}




	@Override
	public MessageTypes getMessageType() {
		return MessageTypes.CHORD_QUERY;
	}

	@Override
	public String getName() {
		return MessageTypes.CHORD_QUERY.getName();
	}

}
